package com.dgshanger.sanhxiaofeisc.mvp.model;

import com.dgshanger.sanhxiaofeisc.common.AppApi;
import com.dgshanger.sanhxiaofeisc.entity.MyTeamEntity;
import com.dgshanger.sanhxiaofeisc.mvp.contract.MyTeamContract;
import com.xx.baseutilslibrary.network.rx.RxHelper;
import com.xx.baseutilslibrary.network.rx.RxHttpObserver;

/**
 * MyTeamModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/5/8 14:38.
 */

public class MyTeamModel implements MyTeamContract.Model {
    @Override
    public void loadDetail(RxHttpObserver<MyTeamEntity> httpObserver) {
        AppApi.Api()
                .my_team(0, "user")
                .compose(RxHelper.io_main())
                .subscribe(httpObserver);
    }
}
